package com.mcxx.modules.temporary.order.service.read;

import com.mcxx.modules.temporary.order.entity.TmpOrderDetailEntity;
import com.mcxx.modules.temporary.order.dao.read.TmpOrderDetailReadDao;
import com.yinhai.ta404.core.transaction.annotation.TaTransactional;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
@TaTransactional(readOnly = true)
public class TmpOrderDetailReadService {

    @Autowired
    private TmpOrderDetailReadDao tmpOrderDetailReadDao;


    public List<TmpOrderDetailEntity> listAll() {
    	return tmpOrderDetailReadDao.listAll();
    }



    public TmpOrderDetailEntity getByOrderId(String id, String checkType) {
    	return tmpOrderDetailReadDao.getByOrderId(id, checkType);
    }

    public TmpOrderDetailEntity selectLastApproval(String orderId){
        return tmpOrderDetailReadDao.selectLastApproval(orderId);
    }
}
